2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 @echo off setlocal enabledelayedexpansion cls echo ---------------------------------------------- echo LoL RADS Registry Fixer by PersianMG (https://mobeigi.com/blog/) echo ---------------------------------------------- :: Ask for 64bit or 32 bit :getArch set /p "targetArch=Are you on a 32bit or 64bit machine [enter 32 or 64]?: " if %targetArch% NEQ 32 ( if %targetArch% NEQ 64 ( echo "Invalid architecture." goto getArch ) ) :: Get LoL Directory Path :getPath set /p "lolpath=What path is League of Legends installed in? [ie: C:\Riot Games\League of Legends]: " :: Check for valid path if ["%lolpath%"] == [] ( echo Empty path is not allowed. goto getPath ) if not exist "%lolpath%" ( echo Path points to folder that does not exist. goto getPath ) :: Add /rads to path set lolpath=%lolpath%\RADS echo Key values will be set to the following RADS path: %lolpath% & echo. :: Add 32 bit registry keys if %targetArch% EQU 32 ( echo Fixing key: HKCR\VirtualStore\MACHINE\SOFTWARE\Riot Games\RADS reg add "HKCR\VirtualStore\MACHINE\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. echo Fixing key: HKCU\SOFTWARE\Riot Games\RADS reg add "HKCU\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. echo Fixing key: HKLM\SOFTWARE\Riot Games\RADS reg add "HKLM\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. ) :: Add 64 bit registry keys if %targetArch% EQU 64 ( echo Fixing key: HKCR\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS reg add "HKCR\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. echo Fixing key: HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS reg add "HKCU\SOFTWARE\Classes\VirtualStore\MACHINE\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. echo Fixing key: HKCU\SOFTWARE\Riot Games\RADS reg add "HKCU\SOFTWARE\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. echo Fixing key: HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS reg add "HKLM\SOFTWARE\Wow6432Node\Riot Games\RADS" /v LocalRootFolder /t REG_SZ /d "%lolpath%" /f & echo. ) echo All keys fixed! @pause